import React, {Component} from 'react';
import {NavLink} from "react-router-dom";

export default class MyNavLink extends Component {
    render() {
        console.log('props',this.props)
        // 批量传递props的方法是{...this.props}
        return (
            <NavLink activeClassName="demo" className="list-group-item" {...this.props}/>
        );
    }
}


